Optimal. Leaf size=257 \[ \frac {2 (31 A-7 B+35 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{105 d \sqrt {a \sec (c+d x)+a}}-\frac {2 (43 A-91 B+35 C) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {\sqrt {2} (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}-\frac {2 (A-7 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{35 d \sqrt {a \sec (c+d x)+a}}+\frac {2 A \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d \sqrt {a \sec (c+d x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.88, antiderivative size = 257, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {4265, 4086, 4022, 4013, 3808, 206} \[ \frac {2 (31 A-7 B+35 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{105 d \sqrt {a \sec (c+d x)+a}}-\frac {2 (43 A-91 B+35 C) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a \sec (c+d x)+a}}+\frac {\sqrt {2} (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}-\frac {2 (A-7 B) \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x)}{35 d \sqrt {a \sec (c+d x)+a}}+\frac {2 A \sin (c+d x) \cos ^{\frac {5}{2}}(c+d x)}{7 d \sqrt {a \sec (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3808
Rule 4013
Rule 4022
Rule 4086
Rule 4265
Rubi steps
\begin {align*} \int \frac {\cos ^{\frac {7}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx\\ &=\frac {2 A \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}+\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {1}{2} a (A-7 B)+\frac {1}{2} a (6 A+7 C) \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{7 a}\\ &=-\frac {2 (A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{35 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}+\frac {\left (4 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{4} a^2 (31 A-7 B+35 C)-a^2 (A-7 B) \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx}{35 a^2}\\ &=\frac {2 (31 A-7 B+35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}-\frac {2 (A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{35 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}+\frac {\left (8 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {1}{8} a^3 (43 A-91 B+35 C)+\frac {1}{4} a^3 (31 A-7 B+35 C) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx}{105 a^3}\\ &=-\frac {2 (43 A-91 B+35 C) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A-7 B+35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}-\frac {2 (A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{35 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}+\left ((A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx\\ &=-\frac {2 (43 A-91 B+35 C) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A-7 B+35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}-\frac {2 (A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{35 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}-\frac {\left (2 (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}\\ &=\frac {\sqrt {2} (A-B+C) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}-\frac {2 (43 A-91 B+35 C) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}}+\frac {2 (31 A-7 B+35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d \sqrt {a+a \sec (c+d x)}}-\frac {2 (A-7 B) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{35 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{7 d \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.85, size = 178, normalized size = 0.69 \[ -\frac {\sin (c+d x) \cos ^{\frac {5}{2}}(c+d x) \left (2 \sqrt {1-\sec (c+d x)} \left ((43 A-91 B+35 C) \sec ^3(c+d x)+(7 (B-5 C)-31 A) \sec ^2(c+d x)+3 (A-7 B) \sec (c+d x)-15 A\right )+105 \sqrt {2} (A-B+C) \sec ^{\frac {7}{2}}(c+d x) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right )\right )}{105 d \sqrt {1-\sec (c+d x)} \sqrt {a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.50, size = 416, normalized size = 1.62 \[ \left [\frac {4 \, {\left (15 \, A \cos \left (d x + c\right )^{3} - 3 \, {\left (A - 7 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (31 \, A - 7 \, B + 35 \, C\right )} \cos \left (d x + c\right ) - 43 \, A + 91 \, B - 35 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + \frac {105 \, \sqrt {2} {\left ({\left (A - B + C\right )} a \cos \left (d x + c\right ) + {\left (A - B + C\right )} a\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - \frac {2 \, \sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}}}{210 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}, -\frac {105 \, \sqrt {2} {\left ({\left (A - B + C\right )} a \cos \left (d x + c\right ) + {\left (A - B + C\right )} a\right )} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {-\frac {1}{a}} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - 2 \, {\left (15 \, A \cos \left (d x + c\right )^{3} - 3 \, {\left (A - 7 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (31 \, A - 7 \, B + 35 \, C\right )} \cos \left (d x + c\right ) - 43 \, A + 91 \, B - 35 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{105 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac {7}{2}}}{\sqrt {a \sec \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 2.30, size = 286, normalized size = 1.11 \[ -\frac {\left (\sqrt {\cos }\left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (30 A \left (\cos ^{4}\left (d x +c \right )\right )+105 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, A \sin \left (d x +c \right )-36 A \left (\cos ^{3}\left (d x +c \right )\right )-105 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, B \sin \left (d x +c \right )+42 B \left (\cos ^{3}\left (d x +c \right )\right )+105 C \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+68 A \left (\cos ^{2}\left (d x +c \right )\right )-56 B \left (\cos ^{2}\left (d x +c \right )\right )+70 C \left (\cos ^{2}\left (d x +c \right )\right )-148 A \cos \left (d x +c \right )+196 B \cos \left (d x +c \right )-140 C \cos \left (d x +c \right )+86 A -182 B +70 C \right )}{105 d a \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.86, size = 970, normalized size = 3.77 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\cos \left (c+d\,x\right )}^{7/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________